package com.my.order.service;

import com.my.order.entity.Stock;
import com.my.order.mapper.StockMapper;
import org.springframework.stereotype.Service;

/**
 * @author zhaodongchao
 * @date 2020/4/20 20:46
 */
@Service
public class StockService {
   private final StockMapper stockMapper;

    public StockService(StockMapper stockMapper) {
        this.stockMapper = stockMapper;
    }

    public Stock selectById(Long id){
        return stockMapper.selectById(id);
    }
}
